clear
echo BUILD Bywater LIBRARIES
echo -----------------------
echo copying input/output header files to include area...
mkdir ../../include
mkdir ../../lib
cp ../gr/gr.h ../../include
cp ../bw/bw.h ../../include
cp ../dr/dr.h ../../include
cp ../ui/ui.h ../../include
cp ../kb/kb.h ../../include
cp ../tw/tw.h ../../include
echo  
echo BUILD INPUT/OUTPUT SYSTEM and USER INTERFACE
echo --------------------------------------------
echo
echo Select system to build: 
echo
echo "    1  AT&T Unix PC using TAM"
echo "    2  AT&T Unix PC using MGR"
echo "    3  X Windows"
echo
echo "Press a key and RETURN: "
echo
read NUMBER
echo

if [ "$NUMBER" -eq 1 ]
	then
           echo "Building for AT&T Unix PC using TAM"
           cp makefile.tam makefile

else if [ "$NUMBER" -eq 2 ]
	then
           echo "Building for AT&T Unix PC using MGR"
           cp makefile.mgr makefile

else if [ "$NUMBER" -eq 3 ]
	then
           echo "Building for X Windows"
           cp makefile.x makefile
        else
           echo Choice not supported.
           exit 1

     fi
     fi
fi

make 

echo copying object files to library area...
cp *.o ../../lib

